package ren.kane.phoenix.util.reflect;

import java.io.Serializable;
import java.lang.reflect.Type;

/**
 * @author renrk(1275) on 2019-08-14 9:50 AM
 **/
public class InterfaceTest {
    public static void main(String[] args) {
        try {
            Class<?> clazz = Person6.class;
            Type father = clazz.getGenericSuperclass();
            Type[] interfaces = clazz.getGenericInterfaces();
            System.out.println("father=" + father);
            for (Type t : interfaces)
                System.out.println("t=" + t);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

class Person6 implements Serializable, Runnable {
    @Override
    public void run() {

    }
}